package Test1;

import Test1.ArrayStack;
import Test1.Stack1;

public class Swing {
    public static void main(String[] args){
        Stack1 s = new ArrayStack();

        for (int i=0;i<20;i++){
            s.push((int)(Math.random()*(100 - 1 +1)));
        }
        s.print();
        s.Reverse();
        System.out.println("-----------reverse------------");
        Stack1 s2 = new ArrayStack();
        for(int i=0;i<20;i++){
             s2.push(s.peek());
            s.pop();
        }


        s2.print();
    }
}